package com.serie402.business.dao.mappers;

import java.util.List;

import com.kiss.fw.dao.DAOMapper;
import com.serie402.business.dao.dto.NewsDAODTO;
import com.serie402.common.bo.News;

public interface NewsMapper extends DAOMapper {
	public int createArticle(final NewsDAODTO _dto);
	public int updateArticle(final NewsDAODTO _dto);
	public int deleteArticle(final NewsDAODTO _dto);
	
	// get single news
	public News retrieveArticle(final NewsDAODTO _dto);
	
	// get list of news
	public List<News> retrieveNews();
	public List<News> retrieveNewsByCategory(final NewsDAODTO _dto);
	public List<News> retrieveNewsByCategoryAndSubCategory(final NewsDAODTO _dto);
	
	// archives
	public List<News> retrieveArchivedNews();
	public List<News> retrieveArchivedNewsByCategory(final NewsDAODTO _dto);
	public List<News> retrieveArchivedNewsByCategoryAndSubCategory(final NewsDAODTO _dto);
}